home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / da / newidle.sit / NewIdle doc < prev   
Text File  |  1986-03-15  |  2KB  |  39 lines

  1. I have posted to net.sources.mac a copy of yet another Idle desk accessory.
  2. The features of this one are:
  3.  
  4.  o erases the whole screen and randomly moves an icon around
  5.  o runs during the host application's idle time (ie., does not take over
  6.    the whole machine)
  7.  o exits when you press the mouse button (so long as the cursor is not in
  8.    the menu bar) or if another window becomes active (ie., if you are in
  9.    the Finder and insert a disk)
  10.  o if you hold down the Option key you can see what used to be on the
  11.    screen (it does not save the bits, however, so it relys on the
  12.    application being able to respond to update events)
  13.  
  14. If you examine the driver you will find the charaters ICN# followed by a
  15. word containing 3.  This is the resource type and ID of the icon that it
  16. flashes on the screen.  You can edit these to customize your desk
  17. accessory.  (For example, display a different icon depending on what
  18. application is running.  If you do this you would want to install the
  19. driver in the application itself, including the Finder.)  Both ICON and
  20. ICN# resource types will work.  If the resource does not exist a square is
  21. moved around instead.
  22.    
  23. Implementation Note:
  24.  
  25. The DA creates a window the size of the screen.  It copies the window's
  26. portRect into its visRgn before drawing, so that it can draw on top of the
  27. menu bar.  It saves the old menu bar and clears the menus to ensure that
  28. the user cannot pull down a menu.  When you hold down the option key it
  29. repaints the menu bar and shrinks the window down to 0-size.
  30.  
  31. You can distribute this freely, as long the credit (blame) is properly
  32. attributed.  Report comments/bugs to me.
  33.  
  34. Enjoy.
  35.  
  36. Larry Rosenstein
  37. {dual, nsc, voder, ios}!apple!lsr
  38. lsr@Apple.CSNET
  39.